<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsps/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>赎回基金</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href='<c:url value="/css/application.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/list.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/form.css"/>'>

	<script type="text/javascript">
	function back(accountNo){
		location.href = '<c:url value="fundMgr?act=forsell"/>&account_no='+accountNo;
	}
</script>
<style type="text/css">
	body {
			background:url(pics/bg.jpg);
			-webkit-background-size: cover;
			-moz-background-size: cover;
			background-size: cover;
		}
</style>
  </head>
  
  <body>
   	<div id="wrapper">
		<div id="f_title">赎回基金</div>
			<form action="<c:url value="/fundMgr?act=sell"/>" method="post">
				<input type = "hidden" name="fund_no" value="${fund.fundNo}">
				<input type = "hidden" name="account_no" value="${account.accountNo}">
				<input type = "hidden" name="amount" value="${fundholding.amount}">
				<div class="f_row">
					<span style="color='red'">[注：赎回基金需要缴纳总交易数额5%的手续费]</span>
				</div>
				<div class="f_row">
					<span>账户编号：</span><span>${account.accountNo}</span>
				</div>
				<div class="f_row">
					<span>账户余额：</span><span>${account.accountAmount}</span>
				</div>
				<div class="f_row">
					<span>基金编号：</span><span>${fund.fundNo}</span>
				</div>
				<div class="f_row">
					<span>基金单价：</span><span>${fund.fundPrice}</span>
				</div>
				<div class="f_row">
					<span>持有数量：</span><span>${fundholding.amount}</span>
				</div>
				<div class="f_row">
					<span>赎回数量：</span>
					<input type = "text" name = "sell_num" value = "${sell_num }">
				</div>
				<div class="f_row">
	    			<br/>
	    			<input type="submit" value = "赎回" style="height=25px;width=50px">
	    			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    			<button style="height=25px;width=50px" onclick="back(${account.accountNo});">返回</button>
	    		</div>
			</form>
		
		</div>
  </body>
  
  <c:if test="${not empty msg}">
	<script type="text/javascript">
		alert('${msg}');
	</script>
</c:if>
</html>
